<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>错误</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .error-container {
            text-align: center;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            padding: 20px;
            width: 300px;
        }

        .error-container h1 {
            font-size: 50px;
            color: #ff4c4c;
            margin: 0;
        }

        .error-container p {
            color: #333;
            margin: 10px 0;
        }

        .btn {
            background-color: #ff4c4c;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            transition: background 0.3s ease;
        }

        .btn:hover {
            background-color: #ff1a1a;
        }
    </style>
</head>
<body>
<div class="error-container" id="errorContainer">
    <h1><i class="fas fa-exclamation-triangle"></i></h1>
    <p>哎呀！出现了一个错误。</p>
    <p>请检查您的输入，或稍后再试。</p>
    <a class="btn" href="login.jsp">返回登录</a>
</div>

<script>
    // 显示特效
    const errorContainer = document.getElementById('errorContainer');
    errorContainer.style.opacity = 0;

    setTimeout(() => {
        errorContainer.style.transition = 'opacity 0.5s';
        errorContainer.style.opacity = 1;
    }, 100);
</script>
</body>
</html>
